Interview Questions and Answer
Options:
a. Runtime type ID
b. Reflection
c. Attributes
d. None of the mentioned
Reveal Answer
Options:
a. System.Text
b. System.Name
c. System.Reflection
d. None of the mentioned
Reveal Answer
Options:
a. Core of the reflection subsystem as it encapsulates a type
b. Consists of many methods and properties that can be used to obtain information about a type at runtime
c. Both a & b
d. Only b
Reveal Answer
Options:
a. System.Reflection
b. System.Reflection.MemberInfo
c. Both a & b
d. None of the mentioned
Reveal Answer
Options:
a. Helps in distinguishing kinds of members
b. Property helps in determining if member is a field, method, property or event
c. Both a & b
d. None of the mentioned
Reveal Answer
Options:
a. GetCustomAttributes()
b. IsDefined()
c. GetCustomeAttributesData()
d. All of the mentioned
Reveal Answer
Options:
a. Returns an array of MethodInfo objects
b. Returns a list of the public methods supported by the type by using GetMethods()
c. Both a & b
d. None of the mentioned
Reveal Answer
Options:
a. Calling a type using invoke()
b. Any arguments that need to be passed to the method are specified in the array parameters
c. The value returned by the invoked method is returned by Invoke()
d. None of the mentioned
Reveal Answer
Options:
a. a property defined by MemberInfo
b. Obtains a list of the type arguments bound to a closed constructed generic type
c. the list may contain both type arguments and type parameters
d. Only b & c
Reveal Answer
Options:
a. Linker
b. ASP.NET Runtime
c. Language compilers
d. CLR
Reveal Answer
Options:
a. [AssemblyInfo: AssemblyDescription (“Csharp”)]
b. [assembly: AssemblyDescription(“Csharp”)]
c. [AssemblyDescription(“Csharp”)]
d. (Assembly:AssemblyDescription(“Csharp”)]
Reveal Answer
Options:
a. By name
b. By address
c. By position
d. By reference
Reveal Answer
Options:
a. class sample { }
b. (Serializable())class sample { }
c. [Serializable()] class sample { }
d. none
Reveal Answer
Options:
a. The CLR can change the behaviour of the code depending on attributes applied to it
b. If a bugFixAttribute is to recieve three paramteres, then the BugFixAttribute class should implement a zero arguement constructor
c. To create a custom attribute we need to create a custom attribute structure and derive it from System.Attribute
d. None of the mentioned
Reveal Answer
Options:
a. Custom attribute cannot be applied to an assembly
b. [assembly : Employer(“Ankit”,employeeid.one)]
c. [ Employer(“Ankit”, employeeid.second)] class employee { }
d. Custom attribute cannot be applied to a class
Reveal Answer
Options:
a. An attribute can be inspected at link time
b. An attribute can be inspected at design time
c. An attribute can be inspected at run time
d. None of the mentioned
Reveal Answer
Options:
a. Method
b. Class
c. Assembly
d. Enum
Reveal Answer
Options:
a. compile time
b. run time
c. design time
d. linking time
Reveal Answer
Bestitcourse google plus

Thank you for visiting BestITCourses, How can I help you

Thank you for visiting BestITCourses, How can I help you